package com.taxi.driver.api;

import com.taxi.driver.data.entity.ConfigEntity;
import com.taxi.driver.data.entity.GovernEntity;

import java.util.List;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

public interface CommonApi {

    @POST("driver/variable.yueyue")
    Observable<List<ConfigEntity>> variable();

    @POST("driver/getGovern.yueyue")
    Observable<GovernEntity> getGovern();

    @FormUrlEncoded
    @POST("order/removePayCache.yueyue")
    Observable<String> removePayCache(@Field("orderUuid") String orderUuid);

    @FormUrlEncoded
    @POST("pay/callback")
    Observable<String> payCallback(@Field("orderUuid") String orderUuid);

}
